<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <link rel="stylesheet" href="css/reset.css">
  <link rel="stylesheet" href="css/normalize.css">
  <link rel="stylesheet" href="css/lk/share.css">
  <script>!function (e) { function t(a) { if (i[a]) return i[a].exports; var n = i[a] = { exports: {}, id: a, loaded: !1 }; return e[a].call(n.exports, n, n.exports, t), n.loaded = !0, n.exports } var i = {}; return t.m = e, t.c = i, t.p = "", t(0) }([function (e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var i = window; t["default"] = i.flex = function (normal, e, t) { var a = e || 100, n = t || 1, r = i.document, o = navigator.userAgent, d = o.match(/Android[\S\s]+AppleWebkit\/(\d{3})/i), l = o.match(/U3\/((\d+|\.){5,})/i), c = l && parseInt(l[1].split(".").join(""), 10) >= 80, p = navigator.appVersion.match(/(iphone|ipad|ipod)/gi), s = i.devicePixelRatio || 1; p || d && d[1] > 534 || c || (s = 1); var u = normal ? 1 : 1 / s, m = r.querySelector('meta[name="viewport"]'); m || (m = r.createElement("meta"), m.setAttribute("name", "viewport"), r.head.appendChild(m)), m.setAttribute("content", "width=device-width,user-scalable=no,initial-scale=" + u + ",maximum-scale=" + u + ",minimum-scale=" + u), r.documentElement.style.fontSize = normal ? "50px" : a / 2 * s * n + "px" }, e.exports = t["default"] }]); flex(false, 100, 1);</script>
</head>

<body>
  <div class="content">
    <ul>
      <li>我是</li>
      <li>超级全能生全国联考第
        <span>1921</span>名考生</li>
      <li>快和我一起测测高考复习情况</li>
      <li>报名截止日期3月14日</li>
      <li>距离报名结束还剩
        <span class="first">2</span>
        <span class="last">4</span>天</li>
    </ul>
    <a href="/lk/signup">我也要报名</a>
  </div>
  <script>
    async function count() {
      function ShowCountDown(time) {
        var now = new Date();
        var endDate = new Date(time);
        console.log(endDate.getTime());
        var leftTime = endDate.getTime() - now.getTime();
        var dd = parseInt(leftTime / 86400 / 1000);//计算剩余的天数
        if(dd<10) {
          dd = '0' + dd;
        }
        var stra = dd.toString().substr(0,1);
        var strb = dd.toString().substr(1,2);
        document.querySelector('.first').innerHTML = stra;
        document.querySelector('.last').innerHTML = strb;
        dd = checkTime(dd);
      }
      function checkTime(i) {
        if (i < 10) {
          i = "0" + i;
        }
        return i;
      }
      timeId = await setInterval(function () { ShowCountDown('2018-3-14 24:00:00'); }, 0);     
      // await clearInterval(timeId);
    }
    count();
  </script>
</body>

</html>